package ltd.hanamaki.study.oop.demo02;

public class CarScore {

    String cardType;

    Integer cardScore;

    public void string() {
        if (this.cardType.equals("金卡") && this.cardScore > 100 || cardType.equals("普卡") && cardScore > 5000) {
            System.out.println("积分：" + this.cardScore + ",卡类型：" + this.cardType);
            System.out.println("回馈积分500分");
            this.cardScore += 500;
            System.out.println("现在的积分：" + this.cardScore);
        }
    }
}
